//<%@ taglib prefix="jj" uri="http://jaxson.org/base" %>

//<jj:import>
org.jaxson.util.collections.Map;
//</jj:import>

EventProxy = new function()
{
	var map = new org.jaxson.util.collections.Map();
	
	var that = {
		contains: function(name){
			return map.containsKey(name);
		},
		
		add : function( name, func ){
			map.put( name, func );
		},
		
		remove : function( name, func ){
			map.remove( name, func );
		},
		
		get : function( name ){
			return map.get(name);
		},
		
		execute: function(name, event){
			return map.get(name)(event);
		}
	};
	
	return that;
};